/**
 * @官方网站 : https://douma.ke.qq.com
 * @微信公众号 : 抖码课堂
 * @官方微信号 : bigdatatang01
 * @作者 : 老汤
 */

#include<stdio.h>

extern int shared;

int sum(int *a, int n);

int array[2] = {1, 2};
static int m = 10;
int* arr_p = (int*)&array;

int c;

static int swap(int *a, int *b)
{
    int tmp = *a;
    *a = *b;
    *b = tmp;
}

int main()
{
    static int b = 4;
    static int m;
    int val = sum(array, 2);
    swap(&val, &shared);
    printf("%d, %d\n", val, shared);
    return val;
}


